﻿using System;
using Yanesdk.System;
using ADV_Evaluator.Scene;

namespace ADV_Evaluator {

    /// <summary>
    /// シーン名
    /// </summary>
    public enum Scenes {
        Main,
    };

    /// <summary>
    /// シーン名に応じたタスクのインスタンスを返す
    /// </summary>
    class SceneFactory : TaskFactoryBase<Scenes> {

        private GameSystem system;

        public SceneFactory(GameSystem system) {
            this.system = system;
        }

        public override TaskBase CreateTask(Scenes name) {
            switch (name) {
            case Scenes.Main:
                return new MainScene(system);
            }
            throw null;
        }
    }

}
